Skip to main content

Set Bookmark Content

AutomatR.Word.Activities.SetBookmarkContent

The "Set Bookmark Content" activity in AutomatR is part of the Word activities package, designed to add text at a specified bookmark location within a Word document. This activity streamlines the process of inserting content precisely where needed, enhancing document customization in automation workflows.

Properties

NameDescription
Input
Bookmark NameSelect Text to enter the name of the bookmark where text will be added in the document. String variables containing the bookmark name.
Bookmark TextSelect Text to enter the text that will be added at the bookmark location in the document. String variables containing the bookmark text.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. Enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Set Bookmark Content" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Set Bookmark Content" activity onto the workflow.
  2. Configure the properties by specifying the bookmark name and the text to be added at the bookmark location within the Word document.
  3. Optionally, configure the delay before executing the activity.
  4. Execute the workflow to add text at the specified bookmark location in the Word document.

Example:

Consider an example where the "Set Bookmark Content" activity is used to add a specific text ("Automation is powerful") at a bookmark named "Description" in a Word document:

Set Bookmark Content:
Bookmark Name: "Description"
Bookmark Text: "Automation is powerful"

In this example, the activity inserts the text "Automation is powerful" at the bookmark named "Description" within the Word document.